Issues with the [embed] tag and fonts

Posted by Legogo on Stack Overflow See other posts from Stack Overflow or by Legogo
Published on 2010-05-14T13:24:37Z Indexed on 2010/05/14 19:44 UTC
Read the original article Hit count: 273

Filed under:
|
|

Hi,

I have some issue with the [embed] tag. Even if I set the embedFonts property of the textfield to true the text doesn't show up.

The thing is that it worked previously and after some changes (not related to fonts) it doesn't. I'd like to understand how the embed process for font works to find the error in my code.

I declare :

[Embed(source = 'asset/font.ttf', fontName="font", mimeType="application/x-font-truetype")] private static var font:String;

to assign the font to the program.

Then i call "font" when declaring my textFormat. Is the "fontName" property the link with the textformat ?

I work with flashdevelop and the flex_sdk_4.0.0.14159 (the big adobe one, with air (~140mo))

Thx !

-Leg

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about fonts